package com.ysd.lis.controller;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.WkQualityType;
import com.ysd.lis.service.WkQualityTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 质量控制类型-体系表 前端控制器
 * </p>
 *
 * @author LiuQi
 * @since 2024-05-06
 */
@RestController
@RequestMapping("/wk/quality/type")
public class WkQualityTypeController extends BaseController {

    @Autowired
    WkQualityTypeService wkQualityTypeService;

    @GetMapping("/getQualityTypeList")
    public Result getQualityTypeList() {
        return wkQualityTypeService.getQualityTypeList();
    }
    @PostMapping("/addQualityType")
    public Result addQualityType(@RequestBody WkQualityType wkQualityType) {
        return wkQualityTypeService.addQualityType(wkQualityType);
    }
    @PostMapping("/editQualityType")
    public Result editQualityType(@RequestBody WkQualityType wkQualityType) {
        return wkQualityTypeService.editQualityType(wkQualityType);
    }
    @PostMapping("/deleteQualityType")
    public Result deleteQualityType(@RequestBody WkQualityType wkQualityType) {
        return wkQualityTypeService.deleteQualityType(wkQualityType);
    }
}
